# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kine
pkgver=0.4.0
pkgrel=0
pkgdesc="etcd API with sqlite, Postgres, Mysql, or dqlite backed"
url="https://github.com/rancher/kine"
arch="all !mips !mips64"
license="Apache-2.0"
makedepends="sqlite-dev go"
subpackages="$pkgname-doc"
options="!check" # no testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/rancher/kine/archive/v$pkgver.tar.gz"

build() {
	go build -v .
}

package() {
	install -D -m755 kine "$pkgdir"/usr/bin/kine
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/kine/LICENSE
}

sha512sums="affc5074434667bda0fa1e29fdcdcef8b1aee2f330fd1415b6e01e2e1548c033b00006119ecdca89a1b58e0616d171d37b04faf68fc71c70a27c0994717f7322  kine-0.4.0.tar.gz"
